package com.yinhai.redis.cluster.monitors;

import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;

import com.yinhai.redis.cluster.model.ShardInfo;

public abstract class AbstractMonitor implements Watcher{
	
	protected ShardInfo shardInfo;
	
	protected ZooKeeper zk;
	
	public ShardInfo getShardInfo() {
		return shardInfo;
	}


	public void setShardInfo(ShardInfo shardInfo) {
		this.shardInfo = shardInfo;
	}
	

	public ZooKeeper getZk() {
		return zk;
	}


	public void setZk(ZooKeeper zk) {
		this.zk = zk;
	}

}
